fix window resize on DPI changes
authorJyrki Gadinger <nilsding@nilsding.org>
Thu, 9 Jan 2025 10:44:56 +0000 (11:44 +0100)
committerJyrki Gadinger <nilsding@nilsding.org>
Wed, 15 Jan 2025 12:11:53 +0000 (13:11 +0100)
commitf352e8e2155a1b6dc74077b1a6f1abc037f88f23
treeef4eba4a0be9cdad185c13c51a4cb16f6d5c4b76
parent0a52cc216e53e5b4058f1870d86794ccba69e6dc
fix window resize on DPI changes

This commit fixes #7678 and likely fixes #7447 too.  On Windows, when
the screen is changed to one with a different scaling setting the window
is being incorrectly resized.  This can be worked around by storing the
window's size before moving it to a different screen, and then resizing
the window again.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
src/gui/systray.cpp